package com.weipai.demo.mapper;

import com.weipai.demo.model.CarBrand;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface CarBrandMapper {

    Integer insert(CarBrand record);

    int updateByPrimaryKeySelective(CarBrand record);

    Integer updateByPrimaryKey(CarBrand record);

    int  selectBybrand(String brand);

    List<String> selectBrand(String brand,String type);

    List<String> selectVehicle(@Param("brand") String brand, @Param("vehicleModel") String vehicleModel,@Param("type")String type);

    int deleteById(Integer id);

    List<String> selectdisplay(String display,String type);

    int updateBrand(CarBrand carBrand);

    List<Map<String,Object>> getCarCategory(@Param("pid") Integer pid);

    Integer getBrandName(@Param("brand") String brand);

}